#!/bin/bash
# -----------------------------------------------------------------
# FileName: 2-start-etcd.sh
# Date: 2020-08-26
# Author: jiftle
# Description: 
# -----------------------------------------------------------------

echo "------ 启动ectd"
# docker start etcd

docker run -d \
  -p 2379:2379 \
  -p 2380:2380 \
  --name etcd \
  quay.io/coreos/etcd:v3.3.8 \
  /usr/local/bin/etcd \
  --name etcd \
  --listen-client-urls http://0.0.0.0:2379 \
  --advertise-client-urls http://0.0.0.0:2379
